<%@ page language="java" import="java.util.*, com.zjut.an.news.manager.*, com.zjut.an.news.dao.*, com.zjut.an.user.manager.*, com.zjut.an.role.dao.*, 
com.zjut.an.role.manager.*, com.zjut.an.admin.dao.*, com.zjut.an.admin.manager.*, com.zjut.an.user.dao.*, com.zjut.zs.user.manager.*, 
com.zjut.zs.applyview.manager.*, com.zjut.zs.applyview.dao.*,com.zjut.zs.school.manager.*, com.zjut.zs.school.dao.*, 
com.zjut.an.config.manager.*, com.zjut.an.config.dao.*, 
com.zjut.zs.userinfo.dao.*, com.zjut.zs.userinfo.manager.*, com.zjut.an.util.tools.*,com.zjut.an.util.system.*" pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>控制台主页</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="../plugins/layuiadmin/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="../plugins/layuiadmin/style/admin.css" media="all">
<style>
#all,#all2{
	width: 100%;
	margin: 0 auto;
	background: #ffffff;
}
#all .t_num i,#all2 .t_num2 i {
	width: 33px;
	height: 47px;
	display: inline-block;
	background: url(images/number1.png) no-repeat;
	background-position: 0 0;
}
</style>
</head>
<%
ZsUserinfoManager manager = (ZsUserinfoManager) SpringContextUtil.getBean("ZsUserinfoManager");
ZsUserManager umanager = (ZsUserManager) SpringContextUtil.getBean("ZsUserManager");
ZsApplyViewManager zsmanager = (ZsApplyViewManager) SpringContextUtil.getBean("ZsApplyViewManager");
AnAdminManager amanager = (AnAdminManager) SpringContextUtil.getBean("AnAdminManager");
AnRoleManager rmanager = (AnRoleManager) SpringContextUtil.getBean("AnRoleManager");
ZsSchoolManager smanager = (ZsSchoolManager) SpringContextUtil.getBean("ZsSchoolManager");
AnConfigManager cmanager = (AnConfigManager) SpringContextUtil.getBean("AnConfigManager");
AnAdmin admin = (AnAdmin)session.getAttribute("admin");
ZsSchool school = (ZsSchool)session.getAttribute("school");
school = smanager.getData(school.getScId());
%>
<body>
  
  	<div class="layui-fluid">
        <div class="layui-row layui-col-space15">
          <div class="layui-col-sm6 layui-col-md2">
	        <div class="layui-card">
	          <div class="layui-card-header">报名实时数据
	          </div>
	          <div class="layui-card-body layuiadmin-card-list">
	            <div id="all">
					<span class="t_num t_num1"></span>人
				</div>
	          </div>
	        </div>
	      </div>  
	      
	      <div class="layui-col-sm6 layui-col-md2">
	        <div class="layui-card">
	          <div class="layui-card-header">系统功能
	            <span class="layui-badge layui-bg-green layuiadmin-badge">状态</span>
	          </div>
	          <div class="layui-card-body layuiadmin-card-list">
	            <p>注册认证：
	              <span class="layuiadmin-span-color">
	              	<%=school.getScRegActive()%><i class="layui-inline layui-icon layui-icon-set"></i></span>
	            </p>
	            <p>登录：
	              <span class="layuiadmin-span-color">
	              	<%=school.getScLoginActive()%><i class="layui-inline layui-icon layui-icon-set"></i></span>
	            </p>
	            <p>附加信息：
	              <span class="layuiadmin-span-color">
	              	<%=school.getScAppActive()%><i class="layui-inline layui-icon layui-icon-set"></i></span>
	            </p>
	            <p>附加信息撤回：
	              <span class="layuiadmin-span-color">
	              	<%=school.getScBackActive()%><i class="layui-inline layui-icon layui-icon-set"></i></span>
	            </p>
	            <p>材料上传：
	              <span class="layuiadmin-span-color">
	              	<%=school.getScFilesendActive()%><i class="layui-inline layui-icon layui-icon-set"></i></span>
	            </p>
	          </div>
	        </div>
	      </div>  
	      <div class="layui-col-sm6 layui-col-md2">
	        <div class="layui-card">
	          <div class="layui-card-header">报名统计
	            <span class="layui-badge layui-bg-blue layuiadmin-badge">截止当前</span>
	          </div>
	          <div class="layui-card-body layuiadmin-card-list">
	            <p>报名：
	              <span class="layuiadmin-span-color">
	              	<%
					ZsApplyView obj = new ZsApplyView();
					out.print(zsmanager.getCountByInstance(obj));
					%><i class="layui-inline layui-icon layui-icon-user"></i></span>
	            </p>
	            <p>注册认证：
	              <span class="layuiadmin-span-color">
	              	<%
					obj = new ZsApplyView();
	              	obj.setUsActive(Status.USER_ACTIVE_ON.getStatus());
					out.print(zsmanager.getCountByInstance(obj));
					int start=zsmanager.getCountByInstance(obj);
					%><i class="layui-inline layui-icon layui-icon-user"></i></span>
	            </p>
	            <p>请求补充信息撤回：
	              <span class="layuiadmin-span-color layui-bg-orange">
	              	<%
	              	obj = new ZsApplyView();
	              	obj.setAppStatus(Status.APPSTATUS_BACK.getStatus());
					out.print(zsmanager.getCountByInstance(obj));
					%><i class="layui-inline layui-icon layui-icon-user"></i></span>
	            </p>
	            <p>补充信息被退回（未确认）：
	              <span class="layuiadmin-span-color layui-bg-red">
	              	<%
	              	obj = new ZsApplyView();
	              	obj.setAppStatus(Status.APPSTATUS_NO.getStatus());
					out.print(zsmanager.getCountByInstance(obj));
					%><i class="layui-inline layui-icon layui-icon-user"></i></span>
	            </p>
	            <p>报名完成：
	              <span class="layuiadmin-span-color layui-bg-green">
	              	<%
	              	obj.setSendStatus(Status.SENDSTATUS_YES.getStatus());
	              	obj.setAppStatus(Status.APPSTATUS_YES.getStatus());
					out.print(zsmanager.getCountByInstance(obj));
					%><i class="layui-inline layui-icon layui-icon-user"></i></span>
	            </p>
	          </div>
	        </div>
	      </div>  
	      
	      <div class="layui-col-sm6 layui-col-md2">
	        <div class="layui-card">
	          <div class="layui-card-header">材料统计 
	            <span class="layui-badge layui-bg-blue layuiadmin-badge">需人工审核</span>
	          </div>
	          <div class="layui-card-body layuiadmin-card-list">
	            <p>未上传：
	              <span class="layuiadmin-span-color ">
	              	<%
	              	obj = new ZsApplyView();
               		obj.setFileStatus(Status.FILESTATUS_NULL.getStatus());
					out.print(zsmanager.getCountByInstance(obj));
					%><i class="layui-inline layui-icon layui-icon-user"></i></span>
	            </p>
	            <p>不全：
	              <span class="layuiadmin-span-color ">
	              	<%
	              	obj.setFileStatus(Status.FILESTATUS_NO.getStatus());
					out.print(zsmanager.getCountByInstance(obj));
					%><i class="layui-inline layui-icon layui-icon-user"></i></span>
	            </p>
	            <p>材料数目已全：
	              <span class="layuiadmin-span-color ">
	              	<%
	              	obj.setFileStatus(Status.FILESTATUS_YES.getStatus());
					out.print(zsmanager.getCountByInstance(obj));
					%><i class="layui-inline layui-icon layui-icon-user"></i></span>
	            </p>
	            <p>材料已经确认：
	              <span class="layuiadmin-span-color ">
	              	<%
	              	obj.setFileStatus(Status.FILESTATUS_YES.getStatus());
          			obj.setAppStatus(Status.APPSTATUS_YES.getStatus());
					out.print(zsmanager.getCountByInstance(obj));
					%><i class="layui-inline layui-icon layui-icon-user"></i></span>
	            </p>
	          </div>
	        </div>
	      </div> 
	      
	      <div class="layui-col-sm6 layui-col-md2">
	        <div class="layui-card">
	          <div class="layui-card-header">初审统计 
	            <span class="layui-badge layui-bg-blue layuiadmin-badge">已提交</span>
	          </div>
	          <div class="layui-card-body layuiadmin-card-list">
	            <p>未初审：
	              <span class="layuiadmin-span-color ">
	              	<%
	              	obj = new ZsApplyView();
               		obj.setSendStatus(Status.SENDSTATUS_YES.getStatus());
               		//obj.setAppStatus(Status.APPSTATUS_YES.getStatus());
               		obj.setCheckStatus(Status.CHECKSTATUS_NULL.getStatus());
					out.print(zsmanager.getCountByInstance(obj));
					%><i class="layui-inline layui-icon layui-icon-user"></i></span>
	            </p>
	            <p>初审通过：
	              <span class="layuiadmin-span-color  layui-bg-green">
	              	<%
	              	obj.setSendStatus(Status.SENDSTATUS_YES.getStatus());
               		//obj.setAppStatus(Status.APPSTATUS_YES.getStatus());
          			obj.setCheckStatus(Status.CHECKSTATUS_YES.getStatus());
					out.print(zsmanager.getCountByInstance(obj));
					%><i class="layui-inline layui-icon layui-icon-user"></i></span>
	            </p>
	            <p>初审不过：
	              <span class="layuiadmin-span-color  layui-bg-red">
	              	<%
	              	obj.setSendStatus(Status.SENDSTATUS_YES.getStatus());
               		//obj.setAppStatus(Status.APPSTATUS_YES.getStatus());
     				obj.setCheckStatus(Status.CHECKSTATUS_NO.getStatus());
					out.print(zsmanager.getCountByInstance(obj));
					%><i class="layui-inline layui-icon layui-icon-user"></i></span>
	            </p>
	          </div>
	        </div>
	      </div>
	      <div class="layui-col-sm6 layui-col-md2">
	        <div class="layui-card">
	          <div class="layui-card-header">考试统计
	            <span class="layui-badge layui-bg-blue layuiadmin-badge">已初审通过</span>
	          </div>
	          <div class="layui-card-body layuiadmin-card-list">
	            <p>未考试：
	              <span class="layuiadmin-span-color ">
	              	<%
	              	obj = new ZsApplyView();
               		obj.setSendStatus(Status.SENDSTATUS_YES.getStatus());
               		//obj.setAppStatus(Status.APPSTATUS_YES.getStatus());
               		obj.setCheckStatus(Status.CHECKSTATUS_YES.getStatus());
               		obj.setPassStatus(Status.PASSSTATUS_NULL.getStatus());
					out.print(zsmanager.getCountByInstance(obj));
					%><i class="layui-inline layui-icon layui-icon-user"></i></span>
	            </p>
	            <p>已签到：
	              <span class="layuiadmin-span-color layui-bg-green">
	              	<%
	              	obj = new ZsApplyView();
               		obj.setSendStatus(Status.SENDSTATUS_YES.getStatus());
               		//obj.setAppStatus(Status.APPSTATUS_YES.getStatus());
               		obj.setCheckStatus(Status.CHECKSTATUS_YES.getStatus());
               		obj.setLocalStatus(Status.LOCALSTATUS_YES.getStatus());
					out.print(zsmanager.getCountByInstance(obj));
					%><i class="layui-inline layui-icon layui-icon-user"></i></span>
	            </p>	
	            <p>未签到：
	              <span class="layuiadmin-span-color layui-bg-red">
	              	<%
	              	obj = new ZsApplyView();
               		obj.setSendStatus(Status.SENDSTATUS_YES.getStatus());
               		//obj.setAppStatus(Status.APPSTATUS_YES.getStatus());
               		obj.setCheckStatus(Status.CHECKSTATUS_YES.getStatus());
               		obj.setLocalStatus(Status.LOCALSTATUS_NO.getStatus());
					out.print(zsmanager.getCountByInstance(obj));
					%><i class="layui-inline layui-icon layui-icon-user"></i></span>
	            </p>            
	            <p>考试通过：
	              <span class="layuiadmin-span-color  layui-bg-green">
	              	<%
	              	obj.setSendStatus(Status.SENDSTATUS_YES.getStatus());
               		//obj.setAppStatus(Status.APPSTATUS_YES.getStatus());
              		obj.setCheckStatus(Status.CHECKSTATUS_YES.getStatus());
              		obj.setPassStatus(Status.PASSSTATUS_YES.getStatus());
					out.print(zsmanager.getCountByInstance(obj));
					%><i class="layui-inline layui-icon layui-icon-user"></i></span>
	            </p>
	            <p>考试未通过：
	              <span class="layuiadmin-span-color  layui-bg-red">
	              	<%
	              	obj.setSendStatus(Status.SENDSTATUS_YES.getStatus());
               		//obj.setAppStatus(Status.APPSTATUS_YES.getStatus());
              		obj.setCheckStatus(Status.CHECKSTATUS_YES.getStatus());
              		obj.setPassStatus(Status.PASSSTATUS_NO.getStatus());
					out.print(zsmanager.getCountByInstance(obj));
					%><i class="layui-inline layui-icon layui-icon-user"></i></span>
	            </p>
	          </div>
	        </div>
	      </div>
	      
	        <fieldset class="layui-elem-field layui-field-title" style="clear:both;margin-top: 30px;">
			  <legend>系统流程</legend>
			</fieldset>

	      <div class="layui-row layui-col-space15">
		    <div class="layui-col-sm6 layui-col-md2">
		        <div class="layui-card">
		          <div class="layui-card-header">准备阶段
		          	<span class="layui-badge layui-bg-blue layuiadmin-badge">未开始报名</span>
		          </div>
		          <div class="layui-card-body">            
		            <ul class="layui-timeline">
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
							<div class="layui-timeline-title"><a href="anConfigList.jsp?coClass=网站配置">系统配置，报名序号设置</a>
		                  </div>
		                </div>
		              </li>
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
							<div class="layui-timeline-title"><a href="anConfigList.jsp?coClass=内容配置">起止时间配置</a></div>
		                </div>
		              </li>
		              
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
		                  <div class="layui-timeline-title">系统测试</div>
		                </div>
		              </li>
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
		                  <div class="layui-timeline-title">公告发布</div>
		                </div>
		              </li>
		            </ul>
		          </div>
		        </div>
		      </div>
		      <div class="layui-col-sm6 layui-col-md2">
		        <div class="layui-card">
		          <div class="layui-card-header">报名阶段
		          	<span class="layui-badge layui-bg-blue layuiadmin-badge">开始报名</span>
		          </div>
		          <div class="layui-card-body">            
		            <ul class="layui-timeline">
		            <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
		                  <div class="layui-timeline-title">导入考试院数据</div>
		                </div>
		              </li>
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
		                  <div class="layui-timeline-title">进程中开启注册认证、登录</div>
		                </div>
		              </li>
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
		                  <div class="layui-timeline-title">进程中开启补充信息填写（可选）</div>
		                </div>
		              </li>
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
		                  <div class="layui-timeline-title">关闭无关进程</div>
		                </div>
		              </li>
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis layui-bg-red"></i>
		                <div class="layui-timeline-content layui-text">
		                  <div class="layui-timeline-title">对申请补充信息退回进行确认（可选）</div>
		                </div>
		              </li>
		            </ul>
		          </div>
		        </div>
		      </div>
		      <div class="layui-col-sm6 layui-col-md2">
		        <div class="layui-card">
		          <div class="layui-card-header">报名截止阶段
		          	<span class="layui-badge layui-bg-blue layuiadmin-badge">截止报名</span>
		          </div>
		          <div class="layui-card-body">            
		            <ul class="layui-timeline">
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
		                  <div class="layui-timeline-title">进程中禁用注册、登录</div>
		                </div>
		              </li>
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
		                  <div class="layui-timeline-title">进程中禁用补充信息（可选）</div>
		                </div>
		              </li>
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
		                  <div class="layui-timeline-title">对所有材料进行‘确认材料’（可选）</div>
		                </div>
		              </li>
		            </ul>
		          </div>
		        </div>
		      </div>
		      <div class="layui-col-sm6 layui-col-md2">
		        <div class="layui-card">
		          <div class="layui-card-header">报名初审阶段
		          	<span class="layui-badge layui-bg-blue layuiadmin-badge">材料审查</span>
		          </div>
		          <div class="layui-card-body">            
		            <ul class="layui-timeline">
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
		                  <div class="layui-timeline-title">材料初审
		                  </div>
		                </div>
		              </li>
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
		                  <div class="layui-timeline-title">专家评审</div>
		                </div>
		              </li>
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
		                  <div class="layui-timeline-title">初审结果导入、开启登录</div>
		                </div>
		              </li>
		            </ul>
		          </div>
		        </div>
		        <div class="layui-card">
		          <div class="layui-card-header">缴费阶段
		          	<span class="layui-badge layui-bg-blue layuiadmin-badge">初审过才缴费</span>
		          </div>
		          <div class="layui-card-body">            
		            <ul class="layui-timeline">
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
		                  <div class="layui-timeline-title">缴费金额确认、缴费渠道确认
		                  </div>
		                </div>
		              </li>
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
		                  <div class="layui-timeline-title">进程中开启缴费</div>
		                </div>
		              </li>
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
		                  <div class="layui-timeline-title">查验缴费结果或第三方导入缴费状态</div>
		                </div>
		              </li>
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
		                  <div class="layui-timeline-title">缴费截止关闭缴费进程</div>
		                </div>
		              </li>
		            </ul>
		          </div>
		        </div>
		      </div>

		      <div class="layui-col-sm6 layui-col-md2">
		        <div class="layui-card">
		          <div class="layui-card-header">面试准备阶段
		          	<span class="layui-badge layui-bg-blue layuiadmin-badge"></span>
		          </div>
		          <div class="layui-card-body">            
		            <ul class="layui-timeline">
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
		                  <div class="layui-timeline-title">准考证模板准备
		                  </div>
		                </div>
		              </li>
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
		                  <div class="layui-timeline-title">准考证打印测试</div>
		                </div>
		              </li>
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
		                  <div class="layui-timeline-title">导入准考信息</div>
		                </div>
		              </li>
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
		                  <div class="layui-timeline-title">进程中开启准考证打印</div>
		                </div>
		              </li>
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
		                  <div class="layui-timeline-title">考生打印准考证</div>
		                </div>
		              </li>
		            </ul>
		          </div>
		        </div>
		      </div>
		      
		      <div class="layui-col-sm6 layui-col-md2">
		        <div class="layui-card">
		          <div class="layui-card-header">面试及结果公布阶段
		          	<span class="layui-badge layui-bg-blue layuiadmin-badge"></span>
		          </div>
		          <div class="layui-card-body">            
		            <ul class="layui-timeline">
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
		                  <div class="layui-timeline-title">考生签到面试
		                  </div>
		                </div>
		              </li>
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
		                  <div class="layui-timeline-title">导入结果及成绩</div>
		                </div>
		              </li>
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
		                  <div class="layui-timeline-title">进程中开启结果查询</div>
		                </div>
		              </li>
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
		                  <div class="layui-timeline-title">公告发布结果</div>
		                </div>
		              </li>
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
		                  <div class="layui-timeline-title">完成三位一体流程</div>
		                </div>
		              </li>
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
		                  <div class="layui-timeline-title">备份当年数据</div>
		                </div>
		              </li>
		              <li class="layui-timeline-item">
		                <i class="layui-icon layui-timeline-axis"></i>
		                <div class="layui-timeline-content layui-text">
		                  <div class="layui-timeline-title">关闭系统及服务器</div>
		                </div>
		              </li>
		            </ul>
		          </div>
		        </div>
		      </div>
		    </div>
		  </div>
    	</div>
    
<script src="../plugins/layuiadmin/layui/layui.js?t=1"></script>  
<script type="text/javascript" src="../plugins/assets/plugins/jquery-3.5.1.min.js"></script>
<script type="text/javascript" src="js/digitalScroll.js"></script>
  <script>
  layui.config({
    base: '../layuiadmin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'console']);
  </script>
<script type="text/javascript">
var sum = <%=start%>;
$(function() {
	setInterval(function(){
		getdata();
		show_num1(sum);
	},10000);
});
function getdata() {
	$.ajax({
        url: '../zsUserStatusCount.action',
        type: 'POST',
        dataType: "json",
        data: {},
        cache: false,
        timeout: 10000,
        error: function () { },
        success: function (data) {
        	console.info(data);
            sum=data.total;
        }
    });
}
        
function show_num1(n) {
	//sum=sum;
	console.log(n);
	var it = $(".t_num1 i");
	var len = String(n).length;
	for(var i = 0; i < len; i++) {
		if(it.length <= i) {
			$(".t_num1").append("<i></i>");
		}
		var num = String(n).charAt(i);
		//根据数字图片的高度设置相应的值
		var y = -parseInt(num) * 58;
		var obj = $(".t_num1 i").eq(i);
		obj.animate({
			backgroundPosition: '(0 ' + String(y) + 'px)'
		}, 'slow', 'swing', function() {});
	}
	$("#cur_num").val(n);
}
</script>
</body>
</html>

